/**
 * Created by mengwei666 on 2017/1/3.
 */
import org.apache.http.HttpResponse;
import org.apache.http.client.CookieStore;
import org.apache.http.client.HttpClient;
import org.apache.http.client.config.CookieSpecs;
import org.apache.http.client.config.RequestConfig;
import org.apache.http.client.methods.*;
import org.apache.http.impl.client.*;
import org.apache.http.util.*;
import org.apache.http.HttpEntity;

public class HttpConnect {
    private CloseableHttpClient client;

    {
        RequestConfig conf = RequestConfig.custom().setCookieSpec(CookieSpecs.STANDARD_STRICT).build();
        client = HttpClients.custom().setDefaultRequestConfig(conf).build();
    }

    public CloseableHttpClient getClient() {
        return client;
    }

}
